import Channel from '@/components/Channel';
import { useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { getAllChannelAction } from '@/store/action/channel';

export default function Home() {
  const dispatch = useDispatch();
  useEffect(() => {
    dispatch(getAllChannelAction());
  }, []);

  return (
    <div>
      <Channel></Channel>
    </div>
  );
}
